<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="ISO-8859-1"/>

<xsl:template match="MASSE">
    <xsl:for-each select="ancestor-or-self::*[@AUTEUR]">
        <xsl:value-of select="local-name(.)"/>
        <xsl:text> </xsl:text>
    </xsl:for-each>
</xsl:template>

<xsl:template match="PLANETE">
    <xsl:apply-templates select="MASSE"/>
</xsl:template>

</xsl:stylesheet>

